<ion-modal-view>
  <ion-header-bar>
    <h1 class="title">登录</h1>
    <div class="buttons">
      <button class="button button-clear" ng-click="closeLogin()">关闭</button>
    </div>
  </ion-header-bar>
  <ion-content>
  <div class="login">
    <form ng-submit="doLogin(login.$valid)" name="login">
      <div class="list list-inset">
        <label class="item item-input">
          <span class="input-label">用户名</span>
          <input type="text" name="username" placeholder="手机号码" ng-model="loginData.username" required ng-pattern="/^(13[0-9]|15[012356789]|18[0236789]|14[57])[0-9]{8}$/">
        </label>
        <label class="item item-input">
          <span class="input-label">密码</span>
          <input type="password" name="password" placeholder="6至16位无空格"  ng-model="loginData.password" required ng-pattern="/^[0-9A-Za-z]{6,16}$/">
        </label>
      </div>
        <button class="button button-block button-positive c-loginbutton" type="submit">登录</button>
        <div ng-show="login.username.$error.pattern || login.username.$error.required">请填写正确的手机号码</div>
        <div ng-show="login.password.$error.pattern || login.password.$error.required" class="pwdStatus">请填写正确的登陆密码</div>
    </form>
  </div>
  </ion-content>
</ion-modal-view>
